import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:im_flutter_sdk_example/jsonserialize/serve/data.dart';
import 'package:im_flutter_sdk_example/pages/expert/widgets/main_title.dart';

class Introduction extends StatelessWidget {
  final ServeData item;
  Introduction({Key key, this.item}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    if (item.serviceDetails == null) return null;
    return Column(
      children: [
        Container(
          margin: EdgeInsets.only(top: 7),
          color: Colors.white,
          child: Column(
            children: [
              MainTitle(title: '服务详情'),
              Padding(
                  padding: const EdgeInsets.all(16.0),
                  child: Html(data: item.serviceDetails))
            ],
          ),
        ),
      ],
    );
  }
}
